<?php
/**
 * Session class
 */
class SESSION {
    /**
     * Descriptor function
     */
    function SESSION() {
        session_start();
    }

    /**
     * Set Variable $var to value $value
     * @param string $var
     * @param string|int|boolean $value
     */
    function setvar($var,$value) {
        $_SESSION[$var] = $value;
    }

    /**
     * Unset Variable $var
     * @param string $var
     */
    function unsetvar($var) {
        unset($_SESSION[$var]);

    }

    /**
     * Get variable's $var value
     * @param string $var
     * @return string|int|boolean
     */
    function getvar($var){
        return $_SESSION[$var];
    }
}
?>
